package com.future.builder.v2;

/**
 * Description:
 *
 * @author weiruibai.vendor
 * Date: 2021/11/16 17:26
 */
public class Director {

    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    public Product construct() {
        builder.buildGun();
        builder.buildTank();
        return builder.product;
    }
}
